\hypertarget{main_8cpp}{
\section{src/main.cpp File Reference}
\label{main_8cpp}\index{src/main.cpp@{src/main.cpp}}
}
{\tt \#include $<$windows.h$>$}\par
{\tt \#include $<$gl$\backslash$gl.h$>$}\par
{\tt \#include $<$gl$\backslash$glu.h$>$}\par
{\tt \#include $<$math.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include \char`\"{}mathutil.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
LRESULT CALLBACK \hyperlink{main_8cpp_9135ea2a0d6fce68ba3b858226a31a4f}{WndProc} (HWND, UINT, WPARAM, LPARAM)
\item 
GLvoid \hyperlink{main_8cpp_87bb84d489df61ed7b0c002584fd984f}{ReSizeGLScene} (GLsizei width, GLsizei height)
\item 
int \hyperlink{main_8cpp_a4c387d3f1ebce6d57684b6a10c9b0ae}{InitGL} (GLvoid)
\item 
int \hyperlink{main_8cpp_52061247bdaeb770e3a1d59eefaad972}{DrawGLScene} (GLvoid)
\item 
GLvoid \hyperlink{main_8cpp_f33a2273205c1491be5916d3091658e0}{KillGLWindow} (GLvoid)
\item 
BOOL \hyperlink{main_8cpp_3dfa55ee6b8056d7438335d2d48977b6}{CreateGLWindow} (char $\ast$title, int width, int height, int bits, bool fullscreenflag)
\item 
int WINAPI \hyperlink{main_8cpp_661c2abc03926acfaeb93b4ae7db4943}{WinMain} (HINSTANCE \hyperlink{main_8cpp_74029128723095e7bf00a71d46af8b24}{hInstance}, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
HDC \hyperlink{main_8cpp_78f6446a0e13adc7b7b2f239112ac785}{hDC} = NULL
\item 
HGLRC \hyperlink{main_8cpp_874963259c7cd998acfe6e187fbdb4c1}{hRC} = NULL
\item 
HWND \hyperlink{main_8cpp_fec4341c234519e145bac6f0e5edaa51}{hWnd} = NULL
\item 
HINSTANCE \hyperlink{main_8cpp_74029128723095e7bf00a71d46af8b24}{hInstance}
\item 
bool \hyperlink{main_8cpp_23ca8db2cebbfb94538122c439146f1a}{keys} \mbox{[}256\mbox{]}
\item 
bool \hyperlink{main_8cpp_03c996f9fcf0e10baeb3e700be0c409a}{active} = TRUE
\item 
bool \hyperlink{main_8cpp_5a9147cb82d1cbeefadd62beb9e6910b}{fullscreen} = TRUE
\item 
float \hyperlink{main_8cpp_dad239fcacf5c59997872bd0c12bdfd1}{xpos} = 0
\item 
float \hyperlink{main_8cpp_db369a2ec52b1f831cf362b570df40d2}{ypos} = 0
\item 
float \hyperlink{main_8cpp_578d5534ec357e0ce45ef49b30144397}{zrot} = 0
\item 
float \hyperlink{main_8cpp_37521b3b3ee2bd3bb98c95771eb009db}{rrot} = 0
\item 
const float \hyperlink{main_8cpp_af3b199198f2cc9d6c3c6615f6c58a32}{zpos} = -20
\item 
const float \hyperlink{main_8cpp_39e9417730b0652eb3e9fcb3248afa20}{move\_\-speed} = .35
\item 
const float \hyperlink{main_8cpp_3a70fd5f96120240bbedf74ebbc7197d}{turn\_\-speed} = .15
\item 
GLfloat \hyperlink{main_8cpp_a5b3b1216574c3613c80028f909c21d7}{rtri}
\item 
GLfloat \hyperlink{main_8cpp_151d23a11bc1e21caadb6282149ce4e0}{rquad}
\end{CompactItemize}


\subsection{Function Documentation}
\hypertarget{main_8cpp_3dfa55ee6b8056d7438335d2d48977b6}{
\index{main.cpp@{main.cpp}!CreateGLWindow@{CreateGLWindow}}
\index{CreateGLWindow@{CreateGLWindow}!main.cpp@{main.cpp}}
\subsubsection[{CreateGLWindow}]{\setlength{\rightskip}{0pt plus 5cm}BOOL CreateGLWindow (char $\ast$ {\em title}, \/  int {\em width}, \/  int {\em height}, \/  int {\em bits}, \/  bool {\em fullscreenflag})}}
\label{main_8cpp_3dfa55ee6b8056d7438335d2d48977b6}


\hypertarget{main_8cpp_52061247bdaeb770e3a1d59eefaad972}{
\index{main.cpp@{main.cpp}!DrawGLScene@{DrawGLScene}}
\index{DrawGLScene@{DrawGLScene}!main.cpp@{main.cpp}}
\subsubsection[{DrawGLScene}]{\setlength{\rightskip}{0pt plus 5cm}int DrawGLScene (GLvoid)}}
\label{main_8cpp_52061247bdaeb770e3a1d59eefaad972}


\hypertarget{main_8cpp_a4c387d3f1ebce6d57684b6a10c9b0ae}{
\index{main.cpp@{main.cpp}!InitGL@{InitGL}}
\index{InitGL@{InitGL}!main.cpp@{main.cpp}}
\subsubsection[{InitGL}]{\setlength{\rightskip}{0pt plus 5cm}int InitGL (GLvoid)}}
\label{main_8cpp_a4c387d3f1ebce6d57684b6a10c9b0ae}


\hypertarget{main_8cpp_f33a2273205c1491be5916d3091658e0}{
\index{main.cpp@{main.cpp}!KillGLWindow@{KillGLWindow}}
\index{KillGLWindow@{KillGLWindow}!main.cpp@{main.cpp}}
\subsubsection[{KillGLWindow}]{\setlength{\rightskip}{0pt plus 5cm}GLvoid KillGLWindow (GLvoid)}}
\label{main_8cpp_f33a2273205c1491be5916d3091658e0}


\hypertarget{main_8cpp_87bb84d489df61ed7b0c002584fd984f}{
\index{main.cpp@{main.cpp}!ReSizeGLScene@{ReSizeGLScene}}
\index{ReSizeGLScene@{ReSizeGLScene}!main.cpp@{main.cpp}}
\subsubsection[{ReSizeGLScene}]{\setlength{\rightskip}{0pt plus 5cm}GLvoid ReSizeGLScene (GLsizei {\em width}, \/  GLsizei {\em height})}}
\label{main_8cpp_87bb84d489df61ed7b0c002584fd984f}


\hypertarget{main_8cpp_661c2abc03926acfaeb93b4ae7db4943}{
\index{main.cpp@{main.cpp}!WinMain@{WinMain}}
\index{WinMain@{WinMain}!main.cpp@{main.cpp}}
\subsubsection[{WinMain}]{\setlength{\rightskip}{0pt plus 5cm}int WINAPI WinMain (HINSTANCE {\em hInstance}, \/  HINSTANCE {\em hPrevInstance}, \/  LPSTR {\em lpCmdLine}, \/  int {\em nCmdShow})}}
\label{main_8cpp_661c2abc03926acfaeb93b4ae7db4943}


\hypertarget{main_8cpp_9135ea2a0d6fce68ba3b858226a31a4f}{
\index{main.cpp@{main.cpp}!WndProc@{WndProc}}
\index{WndProc@{WndProc}!main.cpp@{main.cpp}}
\subsubsection[{WndProc}]{\setlength{\rightskip}{0pt plus 5cm}LRESULT CALLBACK WndProc (HWND {\em hWnd}, \/  UINT {\em uMsg}, \/  WPARAM {\em wParam}, \/  LPARAM {\em lParam})}}
\label{main_8cpp_9135ea2a0d6fce68ba3b858226a31a4f}




\subsection{Variable Documentation}
\hypertarget{main_8cpp_03c996f9fcf0e10baeb3e700be0c409a}{
\index{main.cpp@{main.cpp}!active@{active}}
\index{active@{active}!main.cpp@{main.cpp}}
\subsubsection[{active}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf active} = TRUE}}
\label{main_8cpp_03c996f9fcf0e10baeb3e700be0c409a}


\hypertarget{main_8cpp_5a9147cb82d1cbeefadd62beb9e6910b}{
\index{main.cpp@{main.cpp}!fullscreen@{fullscreen}}
\index{fullscreen@{fullscreen}!main.cpp@{main.cpp}}
\subsubsection[{fullscreen}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf fullscreen} = TRUE}}
\label{main_8cpp_5a9147cb82d1cbeefadd62beb9e6910b}


\hypertarget{main_8cpp_78f6446a0e13adc7b7b2f239112ac785}{
\index{main.cpp@{main.cpp}!hDC@{hDC}}
\index{hDC@{hDC}!main.cpp@{main.cpp}}
\subsubsection[{hDC}]{\setlength{\rightskip}{0pt plus 5cm}HDC {\bf hDC} = NULL}}
\label{main_8cpp_78f6446a0e13adc7b7b2f239112ac785}


\hypertarget{main_8cpp_74029128723095e7bf00a71d46af8b24}{
\index{main.cpp@{main.cpp}!hInstance@{hInstance}}
\index{hInstance@{hInstance}!main.cpp@{main.cpp}}
\subsubsection[{hInstance}]{\setlength{\rightskip}{0pt plus 5cm}HINSTANCE {\bf hInstance}}}
\label{main_8cpp_74029128723095e7bf00a71d46af8b24}


\hypertarget{main_8cpp_874963259c7cd998acfe6e187fbdb4c1}{
\index{main.cpp@{main.cpp}!hRC@{hRC}}
\index{hRC@{hRC}!main.cpp@{main.cpp}}
\subsubsection[{hRC}]{\setlength{\rightskip}{0pt plus 5cm}HGLRC {\bf hRC} = NULL}}
\label{main_8cpp_874963259c7cd998acfe6e187fbdb4c1}


\hypertarget{main_8cpp_fec4341c234519e145bac6f0e5edaa51}{
\index{main.cpp@{main.cpp}!hWnd@{hWnd}}
\index{hWnd@{hWnd}!main.cpp@{main.cpp}}
\subsubsection[{hWnd}]{\setlength{\rightskip}{0pt plus 5cm}HWND {\bf hWnd} = NULL}}
\label{main_8cpp_fec4341c234519e145bac6f0e5edaa51}


\hypertarget{main_8cpp_23ca8db2cebbfb94538122c439146f1a}{
\index{main.cpp@{main.cpp}!keys@{keys}}
\index{keys@{keys}!main.cpp@{main.cpp}}
\subsubsection[{keys}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf keys}\mbox{[}256\mbox{]}}}
\label{main_8cpp_23ca8db2cebbfb94538122c439146f1a}


\hypertarget{main_8cpp_39e9417730b0652eb3e9fcb3248afa20}{
\index{main.cpp@{main.cpp}!move\_\-speed@{move\_\-speed}}
\index{move\_\-speed@{move\_\-speed}!main.cpp@{main.cpp}}
\subsubsection[{move\_\-speed}]{\setlength{\rightskip}{0pt plus 5cm}const float {\bf move\_\-speed} = .35}}
\label{main_8cpp_39e9417730b0652eb3e9fcb3248afa20}


\hypertarget{main_8cpp_151d23a11bc1e21caadb6282149ce4e0}{
\index{main.cpp@{main.cpp}!rquad@{rquad}}
\index{rquad@{rquad}!main.cpp@{main.cpp}}
\subsubsection[{rquad}]{\setlength{\rightskip}{0pt plus 5cm}GLfloat {\bf rquad}}}
\label{main_8cpp_151d23a11bc1e21caadb6282149ce4e0}


\hypertarget{main_8cpp_37521b3b3ee2bd3bb98c95771eb009db}{
\index{main.cpp@{main.cpp}!rrot@{rrot}}
\index{rrot@{rrot}!main.cpp@{main.cpp}}
\subsubsection[{rrot}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf rrot} = 0}}
\label{main_8cpp_37521b3b3ee2bd3bb98c95771eb009db}


\hypertarget{main_8cpp_a5b3b1216574c3613c80028f909c21d7}{
\index{main.cpp@{main.cpp}!rtri@{rtri}}
\index{rtri@{rtri}!main.cpp@{main.cpp}}
\subsubsection[{rtri}]{\setlength{\rightskip}{0pt plus 5cm}GLfloat {\bf rtri}}}
\label{main_8cpp_a5b3b1216574c3613c80028f909c21d7}


\hypertarget{main_8cpp_3a70fd5f96120240bbedf74ebbc7197d}{
\index{main.cpp@{main.cpp}!turn\_\-speed@{turn\_\-speed}}
\index{turn\_\-speed@{turn\_\-speed}!main.cpp@{main.cpp}}
\subsubsection[{turn\_\-speed}]{\setlength{\rightskip}{0pt plus 5cm}const float {\bf turn\_\-speed} = .15}}
\label{main_8cpp_3a70fd5f96120240bbedf74ebbc7197d}


\hypertarget{main_8cpp_dad239fcacf5c59997872bd0c12bdfd1}{
\index{main.cpp@{main.cpp}!xpos@{xpos}}
\index{xpos@{xpos}!main.cpp@{main.cpp}}
\subsubsection[{xpos}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf xpos} = 0}}
\label{main_8cpp_dad239fcacf5c59997872bd0c12bdfd1}


\hypertarget{main_8cpp_db369a2ec52b1f831cf362b570df40d2}{
\index{main.cpp@{main.cpp}!ypos@{ypos}}
\index{ypos@{ypos}!main.cpp@{main.cpp}}
\subsubsection[{ypos}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf ypos} = 0}}
\label{main_8cpp_db369a2ec52b1f831cf362b570df40d2}


\hypertarget{main_8cpp_af3b199198f2cc9d6c3c6615f6c58a32}{
\index{main.cpp@{main.cpp}!zpos@{zpos}}
\index{zpos@{zpos}!main.cpp@{main.cpp}}
\subsubsection[{zpos}]{\setlength{\rightskip}{0pt plus 5cm}const float {\bf zpos} = -20}}
\label{main_8cpp_af3b199198f2cc9d6c3c6615f6c58a32}


\hypertarget{main_8cpp_578d5534ec357e0ce45ef49b30144397}{
\index{main.cpp@{main.cpp}!zrot@{zrot}}
\index{zrot@{zrot}!main.cpp@{main.cpp}}
\subsubsection[{zrot}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf zrot} = 0}}
\label{main_8cpp_578d5534ec357e0ce45ef49b30144397}


